import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '机器编号',
    align: "center",
    dataIndex: 'machineCode'
  },
  {
    title: '机器名称',
    align: "center",
    dataIndex: 'machineName'
  },
  {
    title: '网络状态',
    align: "center",
    dataIndex: 'networkStatus_dictText'
  },
  {
    title: '机器状态',
    align: "center",
    dataIndex: 'deviceStatus_dictText'
  },
  {
    title: '创建日期',
    align: "center",
    dataIndex: 'createTime'
  },
];

// 高级查询数据
export const superQuerySchema = {
  machineCode: {title: '机器编号',order: 0,view: 'text', type: 'string',},
  machineName: {title: '机器名称',order: 1,view: 'text', type: 'string',},
  networkStatus: {title: '网络状态',order: 2,view: 'list', type: 'string',dictCode: 'network_status',},
  deviceStatus: {title: '机器状态',order: 3,view: 'list', type: 'string',dictCode: 'device_status',},
  createTime: {title: '创建日期',order: 4,view: 'datetime', type: 'string',},
};
